package com.SouthernWall_404.Age_Capitalism.common.Init;

import com.SouthernWall_404.Age_Capitalism.AgeCapitalism;
import com.SouthernWall_404.Age_Capitalism.common.Gui.Menu.ModMerchantMenu;
import com.SouthernWall_404.Age_Capitalism.common.Gui.Menu.ModSettingMerchantMenu;
import net.minecraft.world.inventory.MenuType;
import net.minecraftforge.common.extensions.IForgeMenuType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModMenuType {
    public static final DeferredRegister<MenuType<?>> MENU_TYPE = DeferredRegister.create(ForgeRegistries.MENU_TYPES, AgeCapitalism.MODID);

    public static final RegistryObject<MenuType<ModMerchantMenu>> MOD_MERCHANT_MENU = MENU_TYPE.register(
            "mod_merchant_menu",()->
                    IForgeMenuType.create(
                            (windowId, inv, data)->
                                    new ModMerchantMenu(windowId,inv)));
    public static final RegistryObject<MenuType<ModSettingMerchantMenu>> MOD_SETTING_MERCHANT_MENU = MENU_TYPE.register(
            "mod_setting_merchant_menu",()->
                    IForgeMenuType.create(
                            (windowId, inv, data)->
                                    new ModSettingMerchantMenu(windowId,inv,data)));

}
